Fix path for the installation of python modules
authorAnton Gladky <gladk@debian.org>
Mon, 27 Oct 2025 18:54:02 +0000 (14:54 -0400)
committerDominique Belhachemi <domibel@debian.org>
Mon, 27 Oct 2025 18:54:02 +0000 (14:54 -0400)
Last-Update: 2020-11-06

Gbp-Pq: Name 50_fix_python-modules_path.patch

CMake/vtkModuleWrapPython.cmake
Utilities/Python/CMakeLists.txt

index bae4c173d44c22313e4af70cb42b4bfe0da8528d..4ed23e617f69226e31ffed7a44cd41ab809f1891 100644 (file)
@@ -82,7 +82,7 @@ function (vtk_module_python_default_destination var)
         "for Python modules.")
       set(_vtk_python_version_suffix)
     endif ()
-    set(destination "${CMAKE_INSTALL_LIBDIR}/python${_vtk_python_version_suffix}/site-packages")
+    set(destination "lib/python3/dist-packages")
   endif ()
 
   set("${var}" "${destination}" PARENT_SCOPE)
index 18c01d79610fc324e937f23ff0f15e19b267bd83..f291870fa126eb497f5375a4ea6f408336cd880e 100644 (file)
@@ -54,7 +54,7 @@ if (NOT VTK_PYTHON_SITE_PACKAGES_SUFFIX)
     set(VTK_PYTHON_SITE_PACKAGES_SUFFIX "Lib/site-packages")
   else ()
     set(VTK_PYTHON_SITE_PACKAGES_SUFFIX
-      "python${vtk_python_version_pair}/site-packages")
+      "python3/dist-packages")
   endif ()
 endif ()